<template>
  <el-dialog
    :destroy-on-close="false"
    :show-close="false"
    v-model="dialogVisible"
    :close-on-click-modal="false"
    :close-on-press-escape="false"
    align-center
    width="760"
  >
    <div class="feedback-dialog">
      <img class="close" @click="close" src="~/assets/img/close.png" alt="" />
      <div class="header">意见反馈</div>
      <div class="box">
        <div class="title">您对犀牛百宝箱还有哪些意见或反馈？</div>
        <div class="content">
          <el-input
            v-model="remark"
            type="textarea"
            :rows="4"
            placeholder="请详细描述您的意见或反馈内容"
          />
        </div>
      </div>
      <div class="dialog-footer">
        <el-button class="cancel" @click="close"
          >取消</el-button
        >
        <el-button
          class="confirm"
          type="primary"
          @click="close"
        >
          确认提交
        </el-button>
      </div>
    </div>
  </el-dialog>
</template>

<script setup>
const remark = ref('')
const dialogVisible = ref(false);
const close = () => {
  dialogVisible.value = false;
};
const show = () => {
  dialogVisible.value = true;
};
defineExpose({
  close,
  show
})
</script>

<style lang="scss" scoped>
.feedback-dialog {
  background: #ffffff;
  border-radius: 10px;
  position: relative;
  padding-bottom: 20px;
  .header {
    height: 68px;
    background: #F0FBF9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 400;
    color: #333;
    border-radius: 10px 10px 0 0;
  }
  .close {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
  }
  .box {
    padding: 20px;
    .title {
      height: 22px;
      font-size: 16px;
      font-weight: 500;
      text-align: LEFT;
      color: #333333;
      line-height: 19px;
      margin-bottom: 10px;
    }
    .content {
      height: 314px;
      background: #f4f4f4;
      border-radius: 5px;
    }
  }
  .dialog-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 20px;
    ::v-deep .el-button.confirm {
      width: 124px;
      height: 44px;
      background-color: #32C7AA;
      color: #fff;
      border-radius: 5px;
    }
    ::v-deep .el-button.cancel {
      width: 124px;
      height: 44px;
      color: #32C7AA;
      background-color: #D8E7E4;
      border-radius: 5px;
    }
  }
}
</style>
